/* 
 * File:   Player.h
 * Uebersicht der Funktionen von irrKlang: 
 * http://www.ambiera.com/irrklang/docu/functions_func.html
 * Created on 13. Juni 2011, 14:17
 */

#ifndef _PLAYER_H
#include "irrKlang.h"
#define	_PLAYER_H

using namespace irrklang;

class Player {
public:
    Player();
    virtual ~Player();

    bool play(const char* filename);
    void pause();
    void stop();
    void setVolume(float volume);
    bool isBreak();
    void setBreak(bool state);
    void setPlayPosition(ik_u32 position);
    bool isMusicFinished();
    ik_u32 getPlayPosition();
    ik_u32 getPlayLength();

private:
    ISoundEngine* engine;
    ISound* music;
    bool isBreakPressed;
    bool isStopPressed;
};

#endif	/* _PLAYER_H */

